package com.zb.vo;

import com.zb.entity.KnowledgeTypeRelationVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/7/31 0031
 **/
@Data
@ApiModel("说明书封装")
public class InstructionBookVo {
    @ApiModelProperty(value = "说明书ID，新增时不必传，修改时必传", example = "")
    private Long id;

    @NotBlank(message = "说明名标题不能为空")
    @Length(max = 20, message = "说明名标题字符长度限制20个以内")
    @ApiModelProperty(value = "说明名标题", required = true, example = "")
    private String name;

    @Length(max = 300, message = "单个标题封面图片路径限制 300 个字符以内")
    @ApiModelProperty(value = "标题封面图片", example = "")
    private String image;

    @NotNull(message = "说明书状态不能为空")
    @ApiModelProperty(value = "说明书状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;

    @ApiModelProperty(value = "说明书内容", example = "")
    private String content;

    @ApiModelProperty(value = "知识库分类对象")
    private List<KnowledgeTypeRelationVo> knowledgeTypeVos;

    @ApiModelProperty(value = "删除的关联对象ID")
    private List<Long> delRelationIds;



}
